To translate, select message to translate and choose
"Translate.mdrx" from the ARexx menu
$VER: Translate.mdrx 1.1 (25.09.99)
*/
Options Results
tmpfile = 'T:FTransTmp.MD2'
tmpclip = 'T:FTransMD2.Clip'
if ~SHOW('LIBRARIES','rmh.library') then do
if ~ADDLIB('rmh.library',0,-30,0) then exit
end
if exists(tmpclip) then do
EasyRequest('FTranslation port is open! Translation in progress, wait...','Translate.mdrx','OK')
exit
end
trans = EasyRequest('Select the direction to translate' || d2c(10) || '1 - English to Francais' || d2c(10) || '2 - English to Deutsch' || d2c(10) || '3 - English to Italiano' || d2c(10) || '4 - English to Portugues' || d2c(10) || '5 - English to Espanol' || d2c(10) || '6 - Francais to English' || d2c(10) || '7 - Deutsch to English' || d2c(10) || '8 - Italiano to English' || d2c(10) || '9 - Espanol to English' || d2c(10) || '10 - Portugues to English','Translate.mdrx','1|2|3|4|5|6|7|8|9|10|Cancel')
if(trans = 0) then exit
trans = trans - 1
ExtractSelectedMsgs tmpfile 'NOREQ'
ExtractSelectedMsgs tmpclip 'PART 1 NOREQ'
comm = 'C:FTranslator -F "'tmpclip'" -D 'trans' SILENCE >> 'tmpfile